package com.zhentao.utils.common.thread;

import com.zhentao.model.wemedia.pojo.WmUser;

public class WmThreadLocalUtil {
    private final static  ThreadLocal<WmUser> WM_USER_THREAD_LOCAL = new ThreadLocal<>();

    //存入
    public static void setUser(WmUser wmUser){
        WM_USER_THREAD_LOCAL.set(wmUser);
    }

    //获取
    public static WmUser getUser(){
        return WM_USER_THREAD_LOCAL.get();
    }

    //清除
    public static void remove(){
        WM_USER_THREAD_LOCAL.remove();
    }

}

















